package com.ncst.mvcweb.vo;

import lombok.Data;

@Data
public class JsonResult<T> {
    private String status;
    private String message;
    private Object data;

    public JsonResult(String status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public JsonResult(String status, String message) {
        this.status = status;
        this.message = message;
    }
    public JsonResult() {
        this.status = "200";
        this.message = "操作成功";
        this.data = null;
    }
    public JsonResult(String status){
        this.status = status;
    }
}

